package com.qianzhu8.kfc.boot.request;

import com.qianzhu8.kfc.boot.constant.HttpMethodConstants;
import com.qianzhu8.kfc.boot.response.GetUserTokenResponse;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 获取用户token request
 *
 * @author xuyanjun
 * @date 2020-05-03
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class GetUserTokenRequest  extends BaseRequest<GetUserTokenResponse> {

    /**
     * 平台用户唯一标识
     */
    private String platformUniqueId;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 手机号码
     */
    private String mobile;

    /**
     * action
     */
    @Override
    public String getAction() {
        return "/api/v2/platform/getToken";
    }

    /**
     * method
     */
    @Override
    public String getMethod() {
        return HttpMethodConstants.GET;
    }


    /**
     * responseClass
     *
     * @return responseClass
     */
    @Override
    public Class<GetUserTokenResponse> getResponseClass() {
        return GetUserTokenResponse.class;
    }
}
